package com.xxx.meter.model.data.meter;

import com.xxx.meter.model.http.bean.MachineChildBean;
import com.xxx.meter.model.http.bean.MachineInfoBean;

import java.util.ArrayList;
import java.util.List;

/**
 * 抄表本地数据实体
 */
public class MeterEntry {

    private String submitBack;

    private List<String> userName;

    private List<DataItemEntry> data;

    public void setData(List<DataItemEntry> data) {
        this.data = data;
    }

    public void setUserName(List<String> userName) {
        this.userName = userName;
    }

    public void setSubmitBack(String submitBack) {
        this.submitBack = submitBack;
    }

    public List<DataItemEntry> getData() {
        return data;
    }

    public String getSubmitBack() {
        return submitBack;
    }

    public List<String> getUserName() {
        return userName == null ? new ArrayList<String>() : userName;
    }

    public static class DataItemEntry {

        private MachineChildBean machineChildBean;  //设备对象

        private List<MachineInfoBean> machineInfoBeanList;    //设备信息

        public void setMachineChildBean(MachineChildBean machineChildBean) {
            this.machineChildBean = machineChildBean;
        }

        public MachineChildBean getMachineChildBean() {
            return machineChildBean;
        }

        public List<MachineInfoBean> getMachineInfoBeanList() {
            return machineInfoBeanList;
        }

        public void setMachineInfoBeanList(List<MachineInfoBean> machineInfoBeanList) {
            this.machineInfoBeanList = machineInfoBeanList;
        }
    }
}



